<h3 ng-show="type==1"><B>小区banner排序</B></h3>
<h3 ng-show="type==2"><B>小区新鲜事排序</B></h3>
<div class="form-group">
    <label class="control-label" for="textinput">类型:</label>
    <select ng-model="type" ng-options="m.value as m.name for m in bannerType"
            ng-change="getCommunityBanner()">
        <option value="">-- 请选择 --</option>
    </select>
    <label class="control-label" for="textinput">小区:</label>
    <select ng-model="communityId" ng-options="m.objId as m.communityName for m in communityLabelList.data"
            ng-change="getCommunityBanner()">
        <option value="">-- 请选择 --</option>
    </select>
</div>

<br><br>
<div class="tab-content">
    <div class="tab-pane active" id="tab_a">
        <table class="table table-condensed">
            <thead>
            <tr>
                <th ng-show="type==1">图片</th>
                <th ng-show="type==2">内容</th>
                <th>顺序</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <tr ng-repeat="bind in bindList">
                <td ng-show="type==1"><img style="width:200px;" ng-src="{{bind.bannerId.imageURL}}"></td>
                <td ng-show="type==2">{{bind.bannerId.message}}</td>
                <td>{{bind.displayOrder}}</td>
                <td>
                    <button type="button" class="btn btn-default btn-xs"
                            ng-click="setDisplayOrder(bind.objId)">
                        设置顺序
                    </button>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
</div>